/*
 *  SF3KtoProT - Converts Star Fighter 3000 music to Amiga ProTracker format
 *  ProTracker conversion routines
 *  Copyright (C) 2009  Chris Bazley
 */

#ifndef PROTRACKER_H
#define PROTRACKER_H

#include <stdbool.h>

#include "samp.h"

/* Flags controlling generation of ProTracker music */
#define FLAGS_GLISSANDO_SINGLE (1u<<0) /* default is all channels */
#define FLAGS_GLISSANDO_FAST   (1u<<1) /* default is interpolated (1/2 speed) */
#define FLAGS_BLANK_PATTERN    (1u<<2) /* default is abrupt finish to song */
#define FLAGS_VERBOSE          (1u<<3) /* emit information about processing */
#define FLAGS_ALLOW_SFX        (1u<<4) /* allow sound effects during music */
#define FLAGS_EXTRA_OCTAVES    (1u<<5) /* use non-standard octaves 0 and 4 */

extern bool create_protracker(unsigned int      flags,
                              const char       *music_file,
                              const void       *music_data,
                              const char       *samples_dir,
                              const SampleInfo *samples_index,
                              unsigned int      nsamp,
                              const char       *output_file);

extern bool check_tuning(signed int sf_tuning);

#endif /* PROTRACKER_H */
